<!DOCTYPE html>
<html>
<head>
    

    

    
<!-- Baidu Tongji -->
<script>var _hmt = _hmt || []</script>
<script async src="//hm.baidu.com/hm.js?088c9394d6f332ce6581e9a3d824c884"></script>
<!-- End Baidu Tongji -->




    <meta charset="utf-8">
    
    
    
    <title>Ubuntu搭建ss-panel v3-mod | Joyace&#39;s Blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="">
    <meta name="description" content="前端使用赵大的魔改版 https://github.com/esdeathlove/ss-panel-v3-mod 后端也使用赵大的魔改版 https://github.com/esdeathlove/shadowsocks 本教程适用于Ubuntu、Debian 演示环境 : VirMach 512RAM机子 Ubuntu 14 x64 安装前端1.安装 LNMP 1234567screen -">
<meta name="keywords">
<meta property="og:type" content="article">
<meta property="og:title" content="Ubuntu搭建ss-panel v3-mod">
<meta property="og:url" content="http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/index.html">
<meta property="og:site_name" content="Joyace's Blog">
<meta property="og:description" content="前端使用赵大的魔改版 https://github.com/esdeathlove/ss-panel-v3-mod 后端也使用赵大的魔改版 https://github.com/esdeathlove/shadowsocks 本教程适用于Ubuntu、Debian 演示环境 : VirMach 512RAM机子 Ubuntu 14 x64 安装前端1.安装 LNMP 1234567screen -">
<meta property="og:updated_time" content="2017-04-28T17:37:36.999Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Ubuntu搭建ss-panel v3-mod">
<meta name="twitter:description" content="前端使用赵大的魔改版 https://github.com/esdeathlove/ss-panel-v3-mod 后端也使用赵大的魔改版 https://github.com/esdeathlove/shadowsocks 本教程适用于Ubuntu、Debian 演示环境 : VirMach 512RAM机子 Ubuntu 14 x64 安装前端1.安装 LNMP 1234567screen -">
    
        <link rel="alternate" type="application/atom+xml" title="Joyace&#39;s Blog" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>
</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/avatar.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">Joyace</h5>
          <a href="mailto:605036335@qq.com" title="605036335@qq.com" class="mail">605036335@qq.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/Joyace" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://weibo.com/u/3216366760" target="_blank" >
                <i class="icon icon-lg icon-weibo"></i>
                Weibo
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="http://ss.joyace.top" target="_blank" >
                <i class="icon icon-lg icon-plane"></i>
                Plane
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">Ubuntu搭建ss-panel v3-mod</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">Ubuntu搭建ss-panel v3-mod</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-04-26T10:05:45.000Z" itemprop="datePublished" class="page-time">
  2017-04-26
</time>


            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-1"><a class="post-toc-link" href="#安装前端"><span class="post-toc-number">1.</span> <span class="post-toc-text">安装前端</span></a></li><li class="post-toc-item post-toc-level-1"><a class="post-toc-link" href="#安装后端"><span class="post-toc-number">2.</span> <span class="post-toc-text">安装后端</span></a></li><li class="post-toc-item post-toc-level-1"><a class="post-toc-link" href="#强化安全"><span class="post-toc-number">3.</span> <span class="post-toc-text">强化安全</span></a></li></ol>
        </nav>
    </aside>
    
<article id="post-Ubuntu搭建ss-panel v3-mod"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">Ubuntu搭建ss-panel v3-mod</h1>
        <div class="post-meta">
            <time class="post-time" title="2017-04-26 18:05:45" datetime="2017-04-26T10:05:45.000Z"  itemprop="datePublished">2017-04-26</time>

            


            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


            

        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <p>前端使用赵大的魔改版 <a href="https://github.com/esdeathlove/ss-panel-v3-mod" target="_blank" rel="external">https://github.com/esdeathlove/ss-panel-v3-mod</a></p>
<p>后端也使用赵大的魔改版 <a href="https://github.com/esdeathlove/shadowsocks" target="_blank" rel="external">https://github.com/esdeathlove/shadowsocks</a></p>
<p>本教程适用于Ubuntu、Debian</p>
<p>演示环境 : VirMach 512RAM机子 Ubuntu 14 x64</p>
<h1 id="安装前端"><a href="#安装前端" class="headerlink" title="安装前端"></a>安装前端</h1><p>1.安装 LNMP</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">screen -S lnmp</div><div class="line">2G以上内存</div><div class="line">wget http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz &amp;&amp; tar xvzf lnmp1.3-full.tar.gz</div><div class="line"><span class="built_in">cd</span> lnmp1.3-full &amp;&amp; ./install.sh</div><div class="line">1G以下内存</div><div class="line">wget http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz &amp;&amp; tar xvzf lnmp1.2-full.tar.gz</div><div class="line"><span class="built_in">cd</span> lnmp1.2-full &amp;&amp; ./install.sh</div></pre></td></tr></table></figure>
<p>安装过程要求输入MySQL密码, 选择MySQL版本&gt;=5.5, PHP版本&gt;5.6.</p>
<p>安装大概需要半小时, 如果中途 ssh 断线, 输入 <font color="#FF3096"> screen -r lnmp </font> </p>
<p>2.设置虚拟主机</p>
<font color="#FF3096"> lnmp vhost add </font> 

<p>要求输入你的域名, 然后其余项都选 <font color="#FF3096"> no </font> </p>
<p>接着修改下 nginx</p>
<p>编辑 <font color="#FF3096"> /usr/local/nginx/conf/vhost/你的域名.conf </font> </p>
<p>然后添加下面这一段到 server<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">location / </div><div class="line">&#123;</div><div class="line">	try_files <span class="variable">$uri</span> <span class="variable">$uri</span>/ /index.php<span class="variable">$is_args</span><span class="variable">$args</span>;		                </div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>修改 root 那一行为</p>
<font color="#FF3096"> root /home/wwwroot/你的域名/public; </font>


<p>3.下载 sspanel 代码<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">cd</span> /home/wwwroot/你的域名</div><div class="line">apt-get install git -y</div><div class="line">git <span class="built_in">clone</span> -b master https://github.com/esdeathlove/ss-panel-v3-mod.git tmp &amp;&amp; mv tmp/.git . &amp;&amp; rm -rf tmp &amp;&amp; git reset --hard</div><div class="line">chown -R root:root *</div><div class="line">chmod -R 755 *</div><div class="line">chown -R www:www storage</div><div class="line">chattr -i .user.ini</div><div class="line">mv .user.ini public</div><div class="line"><span class="built_in">cd</span> public</div><div class="line">chattr +i .user.ini</div><div class="line">service nginx restart</div></pre></td></tr></table></figure></p>
<p>4.安装 radius , 不使用VPN的话, 可以不进行这一步<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># 先安装perl</span></div><div class="line">apt-get install perl  </div><div class="line"><span class="comment"># 然后需要安装perl的DBI组件</span></div><div class="line">perl -MCPAN <span class="_">-e</span> shell</div><div class="line">cpan&gt;install DBI</div><div class="line"></div><div class="line">//安装完成后退出cpan</div><div class="line">cpan&gt;quit</div><div class="line"><span class="comment"># 再安装其它组件</span></div><div class="line">apt-get install freeradius freeradius-mysql freeradius-utils</div></pre></td></tr></table></figure></p>
<p>5.配置数据库</p>
<p>浏览器打开 <font color="#FF3096"> <a href="http://你的vps" target="_blank" rel="external">http://你的vps</a> ip/phpmyadmin </font> </p>
<p>用户 : root</p>
<p>密码 :安装 lnmp 时设置的</p>
<p>需要创建一个数据库和一个访问这个数据库的用户</p>
<p>点击 <font color="#FF3096">  用户  </font>-&gt;<font color="#FF3096">  新建  </font>-&gt;<font color="#FF3096">  添加用户  </font></p>
<ul>
<li><p>登录信息 :</p>
<p>  Username 选择 使用文本域 , 填写你的用户名 如 sspanel</p>
<p>  Host 选择任意主机 %</p>
<p>  密码 选择使用文本域 填写密码</p>
</li>
<li><p>用户数据库 :</p>
<p>  勾选 创建与用户同名的数据库并授予所有权限</p>
</li>
<li><p>全局权限 :</p>
<p>  全选</p>
</li>
</ul>
<p>接着按执行 选择刚刚新建的数据库 sspanel 导入程序目录下的 glzjin_all.sql</p>
<p>不适用 VPN 的话跳下一步</p>
<p>接着配置 radius , 创建个 radius 数据库和用户 (重复以上步骤)</p>
<p>选择 radius 数据库 导入 <a href="https://github.com/glzjin/Radius-install/raw/master/all.sql" target="_blank" rel="external">https://github.com/glzjin/Radius-install/raw/master/all.sql</a></p>
<p>回到 ssh 继续设置 radius</p>
<p>编辑 <font color="#FF3096"> /etc/freeradius/sql.conf </font></p>
<p>配置 login(用户名), password(密码), radius_db(数据库名)等字段</p>
<p>找到 <font color="#FF3096"> readclients </font> 一行，设为 yes 并去掉注释符号#</p>
<p>然后下面是几个文件的覆盖<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">wget https://github.com/glzjin/Radius-install/raw/master/radiusd.conf -O /etc/freeradius/radiusd.conf</div><div class="line">wget https://github.com/glzjin/Radius-install/raw/master/default -O /etc/freeradius/sites-enabled/default</div><div class="line">wget https://github.com/glzjin/Radius-install/raw/master/dialup.conf -O /etc/freeradius/sql/mysql/dialup.conf</div><div class="line">wget https://github.com/glzjin/Radius-install/raw/master/dictionary -O /etc/freeradius/dictionary</div><div class="line">wget https://github.com/glzjin/Radius-install/raw/master/counter.conf -O /etc/freeradius/sql/mysql/counter.conf</div></pre></td></tr></table></figure></p>
<p>Radius 配置完成,<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">service freeradius start</div></pre></td></tr></table></figure></p>
<p>然后你也可以将该 freeradius 设为开机启动项</p>
<p>6.配置 sspanel<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">cd</span> /home/wwwroot/你的域名</div><div class="line">cp config/.config.php.example config/.config.php</div><div class="line"><span class="comment"># 编辑以下文件 建议使用 FTP 下载到本地修改</span></div><div class="line">vi config/.config.php</div></pre></td></tr></table></figure></p>
<p>由于配置太多 这里只说重点<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div><div class="line">63</div><div class="line">64</div><div class="line">65</div><div class="line">66</div><div class="line">67</div><div class="line">68</div><div class="line">69</div><div class="line">70</div><div class="line">71</div><div class="line">72</div><div class="line">73</div><div class="line">74</div><div class="line">75</div><div class="line">76</div><div class="line">77</div><div class="line">78</div></pre></td><td class="code"><pre><div class="line"><span class="variable">$System_Config</span>[<span class="string">'key'</span>] = <span class="string">''</span>;			//修改此key为随机字符串确保网站安全</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'appName'</span>] = <span class="string">''</span>;             //站点名称</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'baseUrl'</span>] = <span class="string">'https://zhaojin97.cn'</span>;            // 站点地址</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'timeZone'</span>] = <span class="string">'PRC'</span>;        // RPC 天朝时间  UTC 格林时间</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'pwdMethod'</span>] = <span class="string">'sha256'</span>;       // 密码加密   可选 md5,sha256</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'salt'</span>] = <span class="string">''</span>;               // 密码加密用，从旧版升级请留空</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'authDriver'</span>] = <span class="string">'cookie'</span>;   // 登录验证存储方式,推荐使用Redis   可选: cookie,redis</div><div class="line"></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'mailDriver'</span>] = <span class="string">'mailgun'</span>;   // 邮件 可选 mailgun or smtp 需要支持qq邮箱的选 smtp</div><div class="line"></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'checkinMin'</span>] = <span class="string">'100'</span>;       // 签到最少流量 单位MB</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'checkinMax'</span>] = <span class="string">'500'</span>;       // 签到最多流量</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'defaultTraffic'</span>] = <span class="string">'100'</span>;      // 用户初始流量 单位GB</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'inviteNum'</span>] = <span class="string">'0'</span>;			// 注册后获得的邀请码数量</div><div class="line"></div><div class="line"><span class="comment"># database 数据库配置</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_driver'</span>] = <span class="string">'mysql'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_host'</span>] = <span class="string">'localhost'</span>;		// 数据库地址</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_database'</span>] = <span class="string">''</span>;				// 数据库名称 sspanel</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_username'</span>] = <span class="string">''</span>;				// 数据库用户 sspanel</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_password'</span>] = <span class="string">''</span>;				// sspanel用户的密码</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_charset'</span>] = <span class="string">'utf8'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_collation'</span>] = <span class="string">'utf8_general_ci'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'db_prefix'</span>] = <span class="string">''</span>;</div><div class="line"></div><div class="line"><span class="comment"># redis</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'redis_scheme'</span>] = <span class="string">'tcp'</span>;			// 登录验证存储方式选了 redis 的话需要配置</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'redis_host'</span>] = <span class="string">'127.0.0.1'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'redis_port'</span>] = <span class="string">'6379'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'redis_database'</span>] = <span class="string">'0'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'redis_password'</span>]=<span class="string">""</span>;</div><div class="line"></div><div class="line"><span class="comment"># smtp</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_host'</span>] = <span class="string">''</span>;				// 例如 smtp.qq.com</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_username'</span>] = <span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_port'</span>] = <span class="string">'25'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_name'</span>] = <span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_sender'</span>] = <span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_passsword'</span>] = <span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'smtp_ssl'</span>] = <span class="string">'false'</span>;</div><div class="line"></div><div class="line"><span class="comment">#功能开关  需要用到的才开 建议先别动</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_wecenter'</span>]=<span class="string">'false'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_radius'</span>]=<span class="string">'false'</span>;		// 配置了 radius 的话就开</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_cloudxns'</span>]=<span class="string">'false'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_duoshuo'</span>]=<span class="string">'false'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_rss'</span>]=<span class="string">'true'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'enable_paymentwall'</span>]=<span class="string">'false'</span>;</div><div class="line"></div><div class="line"><span class="comment">#Radius数据库设置</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'radius_db_host'</span>]=<span class="string">''</span>;		// 跟 上面 database 数据库配置差不多 换成radius即可</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'radius_db_database'</span>]=<span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'radius_db_user'</span>]=<span class="string">''</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'radius_db_password'</span>]=<span class="string">''</span>;</div><div class="line"></div><div class="line"><span class="comment">#Radius连接密钥</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'radius_secret'</span>]=<span class="string">''</span>;			// 这个重要 必须设</div><div class="line"></div><div class="line"><span class="comment">#端口池</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'min_port'</span>]=<span class="string">'10000'</span>;			// SSR 分配端口号范围</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'max_port'</span>]=<span class="string">'65535'</span>;</div><div class="line"></div><div class="line"><span class="comment">#两种方式相对于ss端口的偏移</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'pacp_offset'</span>]=<span class="string">'-20000'</span>;		// PAC+ 和 PAC++ 用到</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'pacpp_offset'</span>]=<span class="string">'-20000'</span>;</div><div class="line"></div><div class="line"><span class="comment">#测速周期/h</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'Speedtest_duration'</span>]=<span class="string">'6'</span>;	// 对应后端 SSR 的 userapiconfig.py 里的 SPEEDTEST</div><div class="line"></div><div class="line"><span class="comment">#随机分组，注册时随机分配到的分组，多个分组请用英文半角逗号分隔。</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'ramdom_group'</span>]=<span class="string">'0'</span>;			// 组别用于区分用户组 对应组只能访问对应组和0组的服务器 明白后再修改 </div><div class="line"></div><div class="line"><span class="comment">#充值返利百分比</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'code_payback'</span>]=<span class="string">'20'</span>;		// 用户充值后 给邀请他注册的人返利多少%</div><div class="line"></div><div class="line"><span class="comment">#注册时的流量重置日以及需要重置的流量,0不重置</span></div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'reg_auto_reset_day'</span>]=<span class="string">'0'</span>;</div><div class="line"><span class="variable">$System_Config</span>[<span class="string">'reg_auto_reset_bandwidth'</span>]=<span class="string">'100'</span>;	// 单位G</div></pre></td></tr></table></figure></p>
<p>以上为 config 部分配置 完成后保存并上传到原目录下</p>
<p>切换到 ssh 窗口, 在你的网站目录下执行以下命令创建管理员</p>
<font color="#FF3096"> php xcat createAdmin  </font>

<p>按照提示, 输入管理员邮箱密码等信息, 然后执行以下命令同步用户</p>
<font color="#FF3096"> php xcat syncusers </font> 

<p>此时管理员创建完成</p>
<p>接下来需要对服务器进行计划任务的设置,执行 <font color="#FF3096"> crontab -e </font>命令, 添加以下五段<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">30 22 * * * php /home/wwwroot/站点文件夹/xcat sendDiaryMail </div><div class="line">*/1 * * * * php /home/wwwroot/站点文件夹/xcat synclogin</div><div class="line">*/1 * * * * php /home/wwwroot/站点文件夹/xcat syncvpn</div><div class="line">0 0 * * * php /home/wwwroot/站点文件夹/xcat dailyjob</div><div class="line">*/1 * * * * php /home/wwwroot/站点文件夹/xcat checkjob    </div><div class="line">*/1 * * * * php /home/wwwroot/站点文件夹/xcat syncnas</div></pre></td></tr></table></figure></p>
<p>重启Crontab</p>
<font color="#FF3096"> /etc/init.d/cron restart </font> 


<p>7.注意事项</p>
<p>检查时间是否为天朝时间</p>
<p>如果VPS默认是非中国时区的话, 如下命令可以用来更改为中国时区</p>
<font color="#FF3096"> cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime </font> 

<p>检查防火墙是否屏蔽数据库端口<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># 允许本机访问</span></div><div class="line">iptables -A INPUT <span class="_">-s</span> 127.0.0.1/32 -p tcp -m tcp --dport 3306 -j ACCEPT</div><div class="line"><span class="comment"># 允许节点访问</span></div><div class="line">iptables -A INPUT <span class="_">-s</span> 节点IP -p tcp -m tcp --dport 3306 -j ACCEPT</div><div class="line"><span class="comment"># 允许所有IP访问</span></div><div class="line">iptables -A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT</div></pre></td></tr></table></figure></p>
<p>查看防火墙规则<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">查看已添加的iptables规则</div><div class="line">iptables -L -n --line-numbers</div><div class="line">删除已添加的iptables规则</div><div class="line">iptables -D INPUT line-numbers</div></pre></td></tr></table></figure></p>
<p>规则保存<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># Ubuntu</span></div><div class="line">iptables-save &gt; /etc/iptables.rules</div><div class="line"><span class="comment"># CentOS</span></div><div class="line">service iptables save</div></pre></td></tr></table></figure></p>
<h1 id="安装后端"><a href="#安装后端" class="headerlink" title="安装后端"></a>安装后端</h1><p>1.安装 libsodium<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line">apt-get install build-essential wget -y</div><div class="line">wget https://github.com/jedisct1/libsodium/releases/download/1.0.10/libsodium-1.0.10.tar.gz</div><div class="line">tar xf libsodium-1.0.10.tar.gz &amp;&amp; <span class="built_in">cd</span> libsodium-1.0.10</div><div class="line">./configure &amp;&amp; make -j2 &amp;&amp; make install</div><div class="line">ldconfig</div></pre></td></tr></table></figure></p>
<p>2.安装SSR<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line">apt-get install python-pip git -y</div><div class="line">pip install cymysql</div><div class="line">git <span class="built_in">clone</span> -b manyuser https://github.com/glzjin/shadowsocks.git</div><div class="line"><span class="built_in">cd</span> shadowsocks</div><div class="line">chmod +x *.sh</div><div class="line"><span class="comment"># 配置程序</span></div><div class="line">cp apiconfig.py userapiconfig.py</div><div class="line">cp config.json user-config.json</div><div class="line">vi userapiconfig.py</div></pre></td></tr></table></figure></p>
<p>缺少python扩展<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">pip install -r requirements.txt</div></pre></td></tr></table></figure></p>
<p>然后主要编辑 userapiconfig.py, 来解释下里面各项配置的意思<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div><div class="line">33</div><div class="line">34</div><div class="line">35</div><div class="line">36</div><div class="line">37</div><div class="line">38</div><div class="line">39</div><div class="line">40</div><div class="line">41</div><div class="line">42</div><div class="line">43</div><div class="line">44</div><div class="line">45</div><div class="line">46</div><div class="line">47</div><div class="line">48</div><div class="line">49</div><div class="line">50</div><div class="line">51</div><div class="line">52</div><div class="line">53</div><div class="line">54</div><div class="line">55</div><div class="line">56</div><div class="line">57</div><div class="line">58</div><div class="line">59</div><div class="line">60</div><div class="line">61</div><div class="line">62</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># Config</span></div><div class="line"><span class="comment">#节点ID 对应前端节点列表的ID</span></div><div class="line">NODE_ID = 1</div><div class="line"></div><div class="line"><span class="comment">#自动化测速，为0不测试，此处以小时为单位，要和 ss-panel 设置的小时数一致</span></div><div class="line">SPEEDTEST = 6</div><div class="line"></div><div class="line"><span class="comment">#云安全，自动上报与下载封禁IP，1为开启，0为关闭</span></div><div class="line">CLOUDSAFE = 1</div><div class="line"></div><div class="line"><span class="comment">#自动封禁SS密码和加密方式错误的 IP，1为开启，0为关闭</span></div><div class="line">ANTISSATTACK = 0</div><div class="line"></div><div class="line"><span class="comment">#是否接受上级下发的命令，如果你要用这个命令，请参考我之前写的东西，公钥放在目录下的 ssshell.asc</span></div><div class="line">AUTOEXEC = 1</div><div class="line"></div><div class="line"><span class="comment">#是否以多线程模式运行，关闭这个限速就会无效。请优先测试 1 ，开启试试，能运行没。</span></div><div class="line">MULTI_THREAD = 0</div><div class="line"></div><div class="line"><span class="comment">#多端口单用户设置，看重大更新说明。</span></div><div class="line">MU_SUFFIX = <span class="string">'zhaoj.in'</span></div><div class="line"><span class="comment">#多端口单用户设置，看重大更新说明。</span></div><div class="line">MU_REGEX = <span class="string">'%5m%id.%suffix'</span></div><div class="line"></div><div class="line"><span class="comment">#不明觉厉</span></div><div class="line">SERVER_PUB_ADDR = <span class="string">'127.0.0.1'</span> <span class="comment"># mujson_mgr need this to generate ssr link</span></div><div class="line"><span class="comment">#此处不要修改</span></div><div class="line">API_INTERFACE = <span class="string">'glzjinmod'</span> <span class="comment">#mudbjson, sspanelv2, sspanelv3, sspanelv3ssr, muapiv2(not support)</span></div><div class="line"><span class="comment">#mudb，不要管</span></div><div class="line">MUDB_FILE = <span class="string">'mudb.json'</span></div><div class="line"></div><div class="line"><span class="comment"># Mysql 数据库连接信息</span></div><div class="line">MYSQL_HOST = <span class="string">'127.0.0.1'</span></div><div class="line">MYSQL_PORT = 3306</div><div class="line">MYSQL_USER = <span class="string">'ss'</span></div><div class="line">MYSQL_PASS = <span class="string">'ss'</span></div><div class="line">MYSQL_DB = <span class="string">'shadowsocks'</span></div><div class="line">MYSQL_UPDATE_TIME = 60</div><div class="line"></div><div class="line"><span class="comment"># 是否启用SSL连接，0为关，1为开</span></div><div class="line">MYSQL_SSL_ENABLE = 0</div><div class="line"></div><div class="line"><span class="comment"># 客户端证书目录，请看 https://github.com/glzjin/shadowsocks/wiki/Mysql-SSL%E9%85%8D%E7%BD%AE</span></div><div class="line">MYSQL_SSL_CERT = <span class="string">'/root/shadowsocks/client-cert.pem'</span></div><div class="line">MYSQL_SSL_KEY = <span class="string">'/root/shadowsocks/client-key.pem'</span></div><div class="line">MYSQL_SSL_CA = <span class="string">'/root/shadowsocks/ca.pem'</span></div><div class="line"></div><div class="line"><span class="comment"># API，不用管</span></div><div class="line">API_HOST = <span class="string">'127.0.0.1'</span></div><div class="line">API_PORT = 80</div><div class="line">API_PATH = <span class="string">'/mu/v2/'</span></div><div class="line">API_TOKEN = <span class="string">'abcdef'</span></div><div class="line">API_UPDATE_TIME = 60</div><div class="line"></div><div class="line"><span class="comment"># Manager 不用管</span></div><div class="line">MANAGE_PASS = <span class="string">'ss233333333'</span></div><div class="line"></div><div class="line"><span class="comment">#if you want manage in other server you should set this value to global ip</span></div><div class="line">MANAGE_BIND_IP = <span class="string">'127.0.0.1'</span></div><div class="line"></div><div class="line"><span class="comment">#make sure this port is idle</span></div><div class="line">MANAGE_PORT = 23333</div></pre></td></tr></table></figure></p>
<p>3.运行SSR</p>
<p>运行的话, 有几种方式</p>
<p>python server.py 用于调错的<br>./run.sh 无日志后台运行<br>./logrun.sh 有日志后台运行<br>supervisord<br>这里说下 使用Supervisor守护进程启动ssr<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div></pre></td><td class="code"><pre><div class="line"><span class="comment"># 安装</span></div><div class="line">apt-get install supervisor -y</div><div class="line"></div><div class="line"><span class="comment"># 写入配置</span></div><div class="line">vi /etc/supervisor/conf.d/ssr.conf</div><div class="line"></div><div class="line"><span class="comment"># 写入以下内容</span></div><div class="line">[program:ssr]</div><div class="line"><span class="built_in">command</span>=python /root/shadowsocks/server.py </div><div class="line">autorestart=<span class="literal">true</span></div><div class="line">autostart=<span class="literal">true</span></div><div class="line">user=root</div><div class="line"></div><div class="line"><span class="comment"># 重启Supervisor服务。</span></div><div class="line">/etc/init.d/supervisor restart</div><div class="line"></div><div class="line"><span class="comment"># 重启 ssr</span></div><div class="line">supervisorctl restart ssr</div><div class="line"></div><div class="line"><span class="comment"># 查看Supervisor服务运行状态。</span></div><div class="line">supervisorctl status</div><div class="line"></div><div class="line"><span class="comment"># 如果遇到问题，可以检查日志：</span></div><div class="line">supervisorctl tail <span class="_">-f</span> ssr stderr</div><div class="line"></div><div class="line"><span class="comment"># 如果使用supervisor进程守护，需要修改文件vi /etc/default/supervisor，添加一行：</span></div><div class="line"><span class="built_in">ulimit</span> -n 1024000</div></pre></td></tr></table></figure></p>
<h1 id="强化安全"><a href="#强化安全" class="headerlink" title="强化安全"></a>强化安全</h1><p>1.将网站支持 SSL 强化安全</p>
<p>需要提前准备好 SSL 证书文件, 没有的话可以使用Let’s Encrypt 搞个免费SSL证书, 接着配置 nginx</p>
<p>编辑 <font color="#FF3096"> /usr/local/nginx/conf/vhost/域名.conf </font><br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line">server</div><div class="line">&#123;</div><div class="line">	listen 80;</div><div class="line">	<span class="comment">#listen [::]:80; #有ipv6的开</span></div><div class="line">	server_name 域名;</div><div class="line">	rewrite ^(.*) https://<span class="variable">$server_name</span><span class="variable">$1</span> permanent;</div><div class="line">&#125;</div><div class="line"></div><div class="line">server</div><div class="line">&#123;</div><div class="line">	listen 443 ssl;</div><div class="line">	<span class="comment">#listen [::]:443 ssl; #有ipv6的开</span></div><div class="line">	ssl_certificate /etc/letsencrypt/live/你的域名/fullchain.pem;</div><div class="line">	ssl_certificate_key /etc/letsencrypt/live/你的域名/privkey.pem;</div><div class="line">	ssl_trusted_certificate /etc/letsencrypt/live/你的域名/chain.pem;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>2.禁止 http 的访问请求</p>
<p>由于 http 仍然可以访问, 所以我们需要将 http 的请求手动转移到 https, 由于 SSpanel 本身使用了重定向, 那么在不使用其他重定向的情况下, 最简单的方法就是用 html 网页的 参数<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">&lt;!DOCTYPE html&gt;</div><div class="line">&lt;html&gt;</div><div class="line">&lt;head&gt;</div><div class="line">  &lt;meta http-equiv=<span class="string">"refresh"</span> content=<span class="string">"0;url=https://域名"</span>&gt;</div><div class="line">  &lt;meta http-equiv=<span class="string">"Content-Type"</span> content=<span class="string">"text/html; charset=utf-8"</span>&gt;</div><div class="line">&lt;/head&gt;</div><div class="line">&lt;/html&gt;</div></pre></td></tr></table></figure></p>
<p>3.转移 phpMyAdmin 目录</p>
<ul>
<li><p>转移目录</p>
<p>  LNMP安装完毕以后默认的会在IP地址网站根目录生成一个 phpMyAdmin 的目录, 但是正是因为这个原因, 暴露了该目录, 我一般都会直接把这个文件夹转移到新的网站目录下, 比如转移到其他二级域名下的某个目录, 只需要在LNMP中新建一个二级域名而已, 然后把 phpMyAdmin 这个目录再转移到这个二级域名的网站目录下</p>
</li>
<li><p>限制IP</p>
<p>  在 phpMyAdmin 的目录下新增 <font color="#FF3096"> .htaccess </font> 写入以下</p>
  <figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">allow from 59.168.1.0/24</div><div class="line">allow from 59.168.2.50</div><div class="line">deny from all</div></pre></td></tr></table></figure>
<p>  除了 59.168.1.1 至 59.168.1.254 的区间IP 与 59.168.2.50 可以进入后台其于IP都封锁, 就算对方知道路径, IP不允许也是无法进入<br>本文章源自<a href="imeiji.github.io">imeiji.github.io</a></p>
</li>
</ul>
<p>如果觉得麻烦的可以找我代搭建，或者购买我的ssr，联系方式在头像下方。</p>

        </div>

        <blockquote class="post-copyright">
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-04-28T17:37:36.999Z" itemprop="dateUpdated">2017-04-29 01:37:36</time>
</span><br>


        
        这里可以写作者留言，标签和 hexo 中所有变量及辅助函数等均可调用，示例：<a href="/2017/04/26/Ubuntu搭建ss-panel v3-mod/" target="_blank" rel="external">http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/</a>
        
    </div>
    <footer>
        <a href="http://Joyace.top">
            <img src="/img/avatar.jpg" alt="Joyace">
            Joyace
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            

            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&title=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&pic=http://Joyace.top/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&title=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&via=http://Joyace.top" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between flex-row-reverse">
  

  
    <div class="waves-block waves-effect next">
      <a href="/2017/04/26/Debian一键更新内核并开启BBR/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">Debian一键更新内核并开启BBR</h4>
      </a>
    </div>
  
</nav>



    










</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        喵呜~
        <i class="icon icon-quote-right"></i>
    </h3>
    <ul class="reward-items">
        
        <li>
            <img src="/img/wechat.jpg" title="微信打赏二维码" alt="微信打赏二维码">
            <p>微信</p>
        </li>
        

        
        <li>
            <img src="/img/alipay.jpg" title="支付宝打赏二维码" alt="支付宝打赏二维码">
            <p>支付宝</p>
        </li>
        
    </ul>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>博客内容遵循<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p>
            <span>Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a></span>
            <span>Joyace &copy; 2017</span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&title=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&pic=http://Joyace.top/img/avatar.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&title=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&source=" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《Ubuntu搭建ss-panel v3-mod》 — Joyace's Blog&url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/&via=http://Joyace.top" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="//api.qrserver.com/v1/create-qr-code/?data=http://Joyace.top/2017/04/26/Ubuntu搭建ss-panel v3-mod/" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };



</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>






<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>





</body>
</html>
